/* 全局动画效果 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 通用动态效果类 */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.rotate-animation {
  animation: rotate 6s linear infinite;
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.slide-up {
  animation: slideUp 0.3s ease forwards;
}

.slide-down {
  animation: slideDown 0.3s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.3s ease forwards;
}

/* 通用样式 */
.shimmer-bg {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 25%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.shadow-hover {
  transition: all 0.3s ease;
}

.shadow-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 美化滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 美化选择文本 */
::selection {
  background: rgba(24, 144, 255, 0.2);
  color: #1890ff;
}

/* 通用卡片和容器样式 */
.fancy-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fancy-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.fancy-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1890ff, #722ed1);
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(24, 144, 255, 0.2);
  border-radius: 50%;
  border-top-color: #1890ff;
  animation: rotate 1s linear infinite;
}

.loading-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

.loading-wave span {
  display: inline-block;
  width: 4px;
  height: 100%;
  margin: 0 2px;
  border-radius: 2px;
  background-color: #1890ff;
  animation: pulse 1.2s infinite ease-in-out;
}

.loading-wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

.loading-wave span:nth-child(4) {
  animation-delay: 0.6s;
}

.loading-wave span:nth-child(5) {
  animation-delay: 0.8s;
}

/* 美化的表单元素 */
.styled-input {
  border-radius: 8px !important;
  border: 1px solid #ebeef5 !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease !important;
}

.styled-input:focus, .styled-input:hover {
  border-color: #1890ff !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1) !important;
}

.styled-button {
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.styled-button::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transform: rotate(30deg) !important;
  transition: transform 0.6s !important;
}

.styled-button:hover::after {
  transform: rotate(30deg) translate(100%, 100%) !important;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .fancy-card {
    padding: 15px;
  }
  
  .styled-button {
    padding: 8px 16px !important;
  }
}

/* 主题颜色变量 */
:root {
  --primary-color: #1890ff;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --danger-color: #f5222d;
  --info-color: #1890ff;
  --background-color: #f5f7fa;
  --text-color: #303133;
  --text-color-secondary: #606266;
  --border-color: #e4e7ed;
  --shadow-color: rgba(0, 0, 0, 0.1);
} 